package com.huhu.service.serviceimp;

import com.huhu.pojo.Person;
import com.huhu.dao.PersonMapper;
import com.huhu.service.ShowPerson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("showPerson")
public class SearchPerson implements ShowPerson{

    @Autowired
    private PersonMapper personMapper;

    @Override
    public List<Person> showPerson() {
        return personMapper.selectAllPerson();
    }
}